colorpickershell: Unpack the tuple returned from PickColor()
authorIain Lane <iainl@gnome.org>
Mon, 13 Aug 2018 12:52:41 +0000 (13:52 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Aug 2018 13:10:59 +0000 (09:10 -0400)
commitdce33fa83028559c513aade9c1d5cc7bfef3aec7
treedee99f9142290dd9936c83e7bdaa7a14399caa07
parent25d512c18660c2e47b986efebea22a8eb1898645
colorpickershell: Unpack the tuple returned from PickColor()

When calling PickColor on org.gnome.Shell, we get back an "a{sv}", which
GDBus provides to us as "(a{sv})".

At the minute we're not unpacking this tuple, and so picking fails with
messages like:

  GLib-CRITICAL **: 13:38:19.439: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed

  Gtk-WARNING **: 13:38:19.439: Picking color failed: No color received

Let's unpack it.
gtk/gtkcolorpickershell.c